﻿using Lightworks.Core.Entity;
using Newtonsoft.Json;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace Lightworks.System.Models
{
    [SugarTable("sys_dept")]
    public class Department : TreeEntity<Department>
    {
        [Required]
        public string? DeptName { get; set; }
        public int Status { get; set; }
        public int Sort { get; set; }
        public string? Remark { get; set; }
        [SugarColumn(IsJson = true)]
        public long[]? DeptPath { get; set; }
    }
}
